package com.book.scc.mapper;

import com.book.scc.pojo.Book;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface BookMapper {
    List queryBooks(@Param("bookname") String bookname);

    Book queryBookById(@Param("id") int id);

    int deleteBook(@Param("id") int id);

    int updateBook(Book book);

    int queryAdd(Book book);
}
